package com.slink.xin.common.dao.impl;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.slink.xin.common.dao.BaseDao;
import com.slink.xin.common.domain.po.Teacher;
import com.slink.xin.common.mapper.TeacherMapper;


@Repository
public class TeacherDao extends BaseDao<TeacherMapper>{
	
	public Teacher getById(int id)
	{
		return this.mapper.getById(id);
	}
	
	public void add(Teacher teacher) {
		this.mapper.add(teacher);
	}
	
	public List<Teacher> getTeachersByPage(String field, String dir, int start, int limit) {
		return this.mapper.getTeachersByPage(field, dir, start, limit);
	}
	
	public List<Teacher> getTeachersByPageDefault(String field, String dir, int start, int limit){
		return this.mapper.getTeachersByPageDefault(field, dir, start, limit);
	};
	
	public List<Teacher> findTeacherByPageMap(Map<String, Object> map) {
		return this.mapper.findTeacherByPageMap(map);
	}
	
	public List<Teacher> findTeacherByPageMapMulti(Map<String, Object> conditions, int Start, int limit) {
		return this.mapper.findTeacherByPageMapMulti(conditions, Start, limit);
	}
}
